﻿using System.IO;

namespace TrackIT.Common.Factories
{
    public class WorkStreamFactory : IWorkStreamFactory
    {
        public Stream CreateStream(string filename)
        {
            Stream stream = new FileStream(filename, FileMode.OpenOrCreate, FileAccess.ReadWrite, FileShare.ReadWrite);
            stream.Seek(0, SeekOrigin.Begin);
            return stream;
        }
    }
}